<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title><?=$title?></title>
</head>
<body>
<?php echo validation_errors(); ?>
<?php
		echo anchor('form', 'reload form');
		echo form_open('form',array('id'=>'myform'));
		echo form_hidden(array('name'=>'meng'));
		echo form_input('username', set_value('username','test'));
		echo form_input('password', set_value('password'));
		
		$options = array(
                  'small'  => 'Small Shirt',
                  'med'    => 'Medium Shirt',
                  'large'   => 'Large Shirt',
                  'xlarge' => 'Extra Large Shirt',
                );
		//echo form_dropdown('shirts', $options, $this->input->post('shirts') ? $this->input->post('shirts') : 'large');
		echo form_dropdown('shirts', $options, set_value('shirts','large'));
		$string = form_prep('Here is a string containing "quoted" text.');
		echo "<input type=\"text\" name=\"myform\" value=\"$string\" />";
		
		echo "<br>";
		echo form_input('demo',set_value('demo'));
?>
            
                
	<br/><input type="text" name="quantity" value="<?php echo set_value('quantity', '0'); ?>" size="50" />

	<br/>
	<select name="myselect">
	<option value="one" <?php echo set_select('myselect', 'one', TRUE); ?> >One</option>
	<option value="two" <?php echo set_select('myselect', 'two'); ?> >Two</option>
	<option value="three" <?php echo set_select('myselect', 'three'); ?> >Three</option>
	</select>
	
	<br/>
	<input type="checkbox" name="mycheck[]" value="1" <?php echo set_checkbox('mycheck[]', '1'); ?> />
	<input type="checkbox" name="mycheck[]" value="2" <?php echo set_checkbox('mycheck[]', '2', TRUE); ?> />
	
	<br/>
	<input type="radio" name="myradio" value="1" <?php echo set_radio('myradio', '1', TRUE); ?> />
	<input type="radio" name="myradio" value="2" <?php echo set_radio('myradio', '2'); ?> />	


	<br/>
<?php		
		echo form_submit('submit','send');
		echo form_close();
?>
</body>
</html>